package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文件上传记录
 * </p>
 *
 * @author wanghai
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_file_upload")
@ApiModel(value="FileUpload对象", description="文件上传记录")
public class FileUpload extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文件名")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "上传条数")
    @TableField("row_count")
    private Integer rowCount;

    @ApiModelProperty(value = "上传状态 success-成功 fail-失败")
    @TableField("upload_status")
    private String uploadStatus;

    @ApiModelProperty(value = "上传时间")
    @TableField("upload_time")
    private Date uploadTime;

    @ApiModelProperty(value = "操作人")
    @TableField("upload_creator")
    private String uploadCreator;

    @ApiModelProperty(value = "创建者名字")
    @TableField("creator_name")
    private String creatorName;

    @ApiModelProperty(value = "上传至表代号code")
    @TableField("upload_code")
    private String uploadCode;

    @ApiModelProperty(value = "文件的url")
    @TableField("upload_url")
    private String uploadUrl;

    @ApiModelProperty(value = "json信息")
    @TableField("json_info")
    private String jsonInfo;

}
